package com.chhuang.ewcrm.bean;

import com.chhuang.ewcrm.entity.WCamera;
import com.chhuang.ewcrm.entity.WLprCamera;
import com.chhuang.ewcrm.hc.HCNetSDK;
import com.sun.jna.NativeLong;
import lombok.Data;

/**
 *
 * @author chhuang
 * @create 2020-10-13-10:47
 */
@Data
public class CameraBean {

    public CameraBean(){}

    /**
     *
     * @param wLprCamera
     */
    public CameraBean(WLprCamera wLprCamera) {
        this.ip = wLprCamera.getCameraIp();
        this.port = wLprCamera.getCameraPort();
        this.username = wLprCamera.getCameraUsername();
        this.password = wLprCamera.getCameraPassword();
    }

    /**
     *
     * @param wCamera
     */
    public CameraBean(WCamera wCamera) {
        this.ip = wCamera.getCameraIp();
        this.port = wCamera.getCameraPort();
        this.username = wCamera.getCameraUsername();
        this.password = wCamera.getCameraPassword();
        this.enableCapture = wCamera.getCameraEnableCapture();
    }

    private String ip;
    private String username;
    private String password;
    private short port;
    private boolean enableCapture;

    private NativeLong userId;
    private NativeLong lRealPlayHandle;

    private int tHandle;
    private boolean connStatus;
    private boolean lprStatus;
    private boolean videoStatus;
}
